<?php
$this->breadcrumbs=array(
        'Fórum'=>array('index'),
	'Comentários',
);
$this->pageTitle=$model->title;
echo $this->renderPartial('_menu', array('menu_users'=>$menu_users));
?>
<?php $this->renderPartial('_view', array(
	'data'=>$model,
));
?>
<div id="comments">
	<?php if($model->commentCount>=1): ?>
	
			<?php echo $model->commentCount>1 ? $model->commentCount . ' comentários    ' : 'Um comentário'; ?>
		

		<?php $this->renderPartial('_comments',array(
			'post'=>$model,
			'comments'=>$model->comments,
		)); ?>
	<?php endif; ?>
	<?php if(Yii::app()->user->hasFlash('commentSubmitted')): ?>
		<div class="flash-success">
			<?php echo Yii::app()->user->getFlash('commentSubmitted'); ?>
		</div>
	<?php else: ?>
		<?php $this->renderPartial('/comment/_form',array(
			'model'=>$comment,
		)); ?>
	<?php endif; ?>
</div><!-- comments -->
